package com.doit.day05

object Phone {
  val id:Int = 1
  var brand:String = "华为"
  var color:String = "黑色"

  val add = (a:Int,b:Int)=>{
    a+b
  }

  def getMax(a:Int,b:Int,c:Int)={
    var max = a
    if(max < b) max = b
    if(max < c) max = c
    max
  }
}
